GDK W32: Preserve the target value for change_property()
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sun, 26 Nov 2017 00:21:22 +0000 (00:21 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 30 Nov 2017 04:17:26 +0000 (04:17 +0000)
commit56074fbf3c3bdf760b444c7196c9c4aac659eeee
tree87e84fc2131daf8f9360ce664281c84c755afee5
parent6ab1ab9f46f95e6b17405d30af38cf60eeb385c6
GDK W32: Preserve the target value for change_property()

We need to know the target atom value to know when we need to
do something with side-effects (since side-effects are expressed via
special target values). Previously, the code side-stepped that by looking
at the data type (which was rather unique for the one side-effect
target that we supported, signalled by the TARGETS target),
but for the DELETE target that seems to be no longer an option, hence the new
field to carry this information past the convert_selection() routine.

This prevents GDK from throwing a warning when trying to convert
a DELETE target, which has no format or data objects set.

The side-effects for the DELETE target happen earlier, in GTK layer.
By the point it gets to change_property(), it's a no-op.

https://bugzilla.gnome.org/show_bug.cgi?id=786509
gdk/win32/gdkdnd-win32.c
gdk/win32/gdkevents-win32.c
gdk/win32/gdkselection-win32.c
gdk/win32/gdkselection-win32.h